package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.PersonDynamicCo;
import com.engineering.elink.domain.PersonDynamic;

public interface PersonDynamicMapper {
    int deleteByPrimaryKey(Integer pdId);

    int insert(PersonDynamic record);

    int insertSelective(PersonDynamic record);

    PersonDynamic selectByPrimaryKey(Integer pdId);

    int updateByPrimaryKeySelective(PersonDynamic record);

    int updateByPrimaryKey(PersonDynamic record);
    
    PersonDynamic selectByFkIdAndPdType(@Param("fkId") String fkId, @Param("pdType") int pdType, @Param("userId") String userId);
    
    List<Map<String,Object>> selectPersonDynamicList (@Param("pdo") PersonDynamicCo personDynamicCo);
    
    int selectPersonDynamicListCount (@Param("pdo") PersonDynamicCo personDynamicCo); 
    
	int deleteByFkId(@Param("fkId") String fkId);
}